import React, { Component } from 'react'
// import PropTypes from 'prop-types';
export class Main extends Component {
  // 
 
  render() {
     const {list}=this.props
    return (
      <div className='main'>
        <ul className='todoList'>
            {list.map((item,index)=>{
         return  <li key={item.id}>{item.title}</li>
       })}
         
        </ul>
     
       
        
        
      </div>
    )
  }
}

  // Main.defaultProps = {
   
  //   color: 'yellow'
  // };
  
export default Main